POV-Ray : Newsgroups : povray.general : Bug - sgn() function : Re: Bug - sgn() function Server Time
5 Aug 2024 18:18:01 EDT (-0400)
  Re: Bug - sgn() function  
From: Philippe Debar
Date: 8 Aug 2002 17:02:25
Message: <3d52dc61$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3D5### [at] gmxde...
>
>
> Demevec wrote:
> >
> > [...]
> >
> > I used only a simple statement such as: "#declare Value1=sgn(-3);".
> >
> > Could someone help me verify if this is a bug or maybe a workaround if
it is
> > or etc.
>
> You need to add
>
> #include "math.inc"
>
> before using the sgn() function.

I think we will see a good number of such question, as it's not very clear
in the doc if you get there by doing a search. Should it be added to the
VFAQ ?



Povingly,

Philippe


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.